{include file="header.html"}
<script type="text/javascript">
//<!CDATA[
$(function(){
    $('#track_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        rules : {
            track_user : {
                required : true,
            },
            track_info : {
                required : true,
            }
        },
        messages : {
            track_user : {
                required : '跟进人不可为空',
            },
            track_info  : {
                required : '跟进信息不可为空',
            }
        }
    });
});
//]]>
</script>
<div id="rightTop">
    <p><strong>{$title_name}</strong></p>
</div>

<div class="info">
    <form method="post" id="track_form" enctype="multipart/form-data">
        <!--{if $tracks}-->
        <table  width="100%" cellspacing="0" class="dataTable">
            <tr class="tatr1">
                <th width="20%" class="firstCell">跟进人:</th>
                <th width="30%">跟进时间:</th>
                <th width="50%">跟进信息:</th>
            </tr>
            <!--{foreach from=$tracks item=track}-->
            <tr class="tatr2">
                <td class="firstCell">{$track.track_user|escape}</td>
                <td>{$track.track_time|date:complete}</td>
                <td>{$track.track_info|escape}</td>
            </tr>
            <!--{/foreach}-->
        </table>
        <!--{/if}-->
        <table class="infoTable" {if $tracks}style="margin-top: 70px;"{/if}>
            <tr>
                <th class="paddingT15">跟进人:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="paddingT15" type="text" name="track_user" id="track_user"/>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">跟进信息:</th>
                <td class="paddingT15 wordSpacing5">
                    <textarea name="track_info" id="track_info" style=" height: 100px; width: 500px"></textarea>
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20">
                    <input class="formbtn" type="submit" name="Submit" value="提交" />
                    <input class="formbtn" type="button" onclick="window.history.go(-1)" value="返回" />
                </td>
            </tr>
        </table>
    </form>
</div>

{include file="footer.html"}
